<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <f:view contentType="text/html">
        <h:head>
            <f:facet name="first">
                <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
                <title>SACPE 2015</title>
            </f:facet>
        </h:head>

        <h:body>
            <div>
                <h:graphicImage url="images/logo.png" alt="Logo"  style="vertical-align: top;"/> 
            </div>
            <h:form id="formCampos">
                <p:panel>
                    <div align="center"> 
                    <p:panelGrid id="pnlLogin" columns="2">
                        <f:facet name="header">  
                            Sus Módulos
                        </f:facet>     
                        <h:outputText value="Módulos"/>
                        <p:selectOneMenu id="cmbRoles" binding="#{usuarioVista.cmbRoles}" > 
                            <f:selectItem itemLabel="Seleccione" itemValue="" noSelectionOption="true"/>
                            <f:selectItems value="#{usuarioVista.itemsRoles}" />
                        </p:selectOneMenu>   
                        <f:facet name="footer"> 
                            <div align="center"> 
                                <p:commandButton id="btnAbrir" action="#{usuarioVista.abrirModulo}" value="Ingresar" binding="#{usuarioVista.btnModulo}"/>
                            </div>
                        </f:facet>  

                    </p:panelGrid>
                    </div>
                </p:panel>
            </h:form>   
            <div>
                <h:graphicImage url="images/logo.png" alt="Logo"  style="vertical-align: bottom;"/>
            </div>
        </h:body>

    </f:view>
</html>

